package com.brkj.util.view;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.VideoView;

import com.brkj.course.RecordTime;

public class MyVideoView extends VideoView{
	private RecordTime recordTime;
	
	public MyVideoView(Context context) {
		super(context);
	} 
	
	public MyVideoView(Context context, AttributeSet attrs) {
		super(context,attrs);
	} 
	
	public void setRecordTime(RecordTime recordTime){
		this.recordTime = recordTime;
	}
	

	@Override
	public void stopPlayback() {
		// TODO Auto-generated method stub
		super.stopPlayback();
		recordTime.pause();
	}

	@Override
	public void start() {
		super.start();
		recordTime.start();
	}

	@Override
	public void pause() {
		// TODO Auto-generated method stub
		super.pause();
		recordTime.pause();
	}

	@Override
	public void resume() {
		// TODO Auto-generated method stub
		super.resume();
	}
	
	
	
	
}